from django.urls import path
from . import views

urlpatterns = [
    path('article/', views.ArticleView.as_view()),
    path('article/<int:pk>/', views.ArticleView.as_view()),
    path('page/', views.ArticlesView.as_view()),
    # 认证
    path('login/', views.LoginView.as_view()),
    path('token/', views.DemoTokenView.as_view()),

    # http://127.0.0.1:8000/api/v2/article2  版本控制
    # path('<version>/article2/', views.ArticlesView.as_view()),
]
